package Zouye07;


    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;

    public class ListMap {
        public static void main(String[] args) {
              List<Map<String, String>> list = new ArrayList<>();
                  Map<String, String> lima = new HashMap<>();
                        lima.put("name", "张三");
                        lima.put("id","01");
                        lima.put("age", "18");
                        list.add(lima);

            Map<String, String> mali = new HashMap<>();
                       mali.put("name", "李四");
                       mali.put("id", "02");
                       mali.put("age", "28");
                       list.add(mali);


            for (Map<String, String> map : list){
                System.out.println(map);
            }

        }
    }

